package com.dashu.authority.repository;

import java.util.List;
import java.util.Map;

import com.dashu.authority.entity.Role;
import com.github.abel533.mapper.Mapper;

public interface RoleMapper extends Mapper<Role> {
	public List<Role> queryAllByExample(Map<Object,Object> params);	
	public Integer insertEntity(Role entity);
	public Integer updateEntity(Role entity);
	public Integer deleteByIds(Map<Object,Object> params);
	public Integer updateStatus(Map<Object,Object> params);
	public List<Role> findAllSuperiorByRoleId(Integer id);
	
	public String findNameByRoleId(Integer id);
}